package com.visionet.feignconsumer.controller;

import com.visionet.feignconsumer.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: pengjx
 * @Date: 2019-01-16 19:46
 */
@RestController
public class ConsumerController {

    @Autowired
    HelloService helloService;

    @RequestMapping(value = "feign-service",method = RequestMethod.GET)
    public String helloConsumer() {
        return helloService.hello();
    }
}
